<?php
/**
* 	Bushido
 *
 * @category   Bushido
 * @package    Bushido_Model_ETL
 * @copyright  Copyright (c) 2009 Nathan Keyes
 * @author Nathan Keyes
 * @version    $Id: Rowset.php 7 2009-11-14 22:42:08Z nkeyes $
 */

/**
 * 
 * @category   Bushido
 * @package    Bushido_ETL
 * @copyright  Copyright (c) 2009 Nathan Keyes
 */

class Bushido_Db_Table_Rowset extends Zend_Db_Table_Rowset_Abstract 
{
	/*
	public function init()
	{
		
		$user = Bushido_App::getUser();
		$invalidIndexes = array();
		
		
		foreach($this as $index => $row)
		{
			
			//Zend_debug::dump('Checking ' . $row->getTableClass() );
			
			if(!$row->getTable()->assert(new Zend_Acl(), $user, $row, 'view'))
			{
				$invalidIndexes[] = $index;
				//Zend_Debug::dump("Access to " . $row->getTableClass() . '::' . $row->getPK() . ' row ' . (string)($index+1) . ' of ' . $this->_count . ' denied.');
			}
			else
			{
				//Zend_Debug::dump("Access to " . $row->getTableClass() . '::' . $row->getPK() . ' row ' . (string)($index+1) . ' of ' . $this->_count . ' granted.');
			}
			
		}
		//Zend_Debug::dump($this->_data, 'data before');
		foreach($invalidIndexes as $invalidIndex)
		{
			if(isset($this->_data[$invalidIndex]))
			{
				unset($this->_data[$invalidIndex]); // unset the original row data
				--$this->_count; // adjust the count accordingly
			}
		}
		$this->_data = array_values($this->_data);
		$this->_rows = array(); // unset the instantiated row class object
		$this->rewind();
		//Zend_Debug::dump($this->_data, 'data after');
	}
	*/
}